package com.spring.setter.injection;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
	
	public static void main(String[] args) {
		
		ApplicationContext context = new ClassPathXmlApplicationContext("Spring-Module2.xml");
		
		OutputHelper  outputHelper =(OutputHelper) context.getBean("OutputHelper");
		
		outputHelper.generateOutput();
		
		OutputHelper2 outputHelper2 =(OutputHelper2) context.getBean("OutputHelper2");
		
		outputHelper2.generateOutput();
		
		
		
	}

}
